﻿<UserControl x:Class="RemoteTranslator.AssistentApplication.Plugins.Views.MicrophoneScreen"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             xmlns:viewModels="clr-namespace:RemoteTranslator.AssistentApplication.Plugins.ViewModels"
             xmlns:infraWPF="clr-namespace:YasharEl.Infrastructure.Presentation.WPF.Controls;assembly=YasharEl.Infrastructure.Presentation.WPF"
             mc:Ignorable="d" 
             d:DesignHeight="300" d:DesignWidth="300">
    <UserControl.Resources>
        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <ResourceDictionary Source="pack://application:,,,/RemoteTranslator.AssistentApplication.Plugins;component/ResourceDictionary.xaml" />
            </ResourceDictionary.MergedDictionaries>
        </ResourceDictionary>
    </UserControl.Resources>
    <GroupBox Header="Microphone - (translation language)">
        <Grid>
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="5" />
                <ColumnDefinition Width="Auto" />
                <ColumnDefinition />
                <ColumnDefinition Width="28"/>
            </Grid.ColumnDefinitions>
            <Grid.RowDefinitions>
                <RowDefinition Height="28" />
                <RowDefinition Height="Auto" />
                <RowDefinition />
                <RowDefinition Height="Auto" />
            </Grid.RowDefinitions>

            <Label Grid.Row="1" Grid.Column="1" Content="Output Channel:" />
            <ComboBox Grid.Row="1" Grid.Column="2" MinWidth="170" HorizontalAlignment="Left" 
                      ItemsSource="{Binding Path=OutputAudioChannels}" SelectedItem="{Binding Path=CurrentOutputAudioChannel}">
                <ComboBox.ItemTemplate>
                    <DataTemplate DataType="{x:Type viewModels:ChannelViewModel}">
                        <TextBlock Text="{Binding Path=ChannelName}" />
                    </DataTemplate>
                </ComboBox.ItemTemplate>
            </ComboBox>
        </Grid>
    </GroupBox>
</UserControl>
